package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Tag
 * Description:标签表实体类
 * date: 2020/8/28 0028 15:30:37
 * <p>
 * tid	int	            主键，自增	    标签id
 * name	varchar(255)	非空	            标签名
 * uid	varchar(255)	非空，外键user表	用户id/账号
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class Tag implements Serializable {
    private int tid;//标签id
    private String name;//标签名
    private User user;//用户

    public Tag() {
    }

    public Tag(int tid, String name, User user) {
        this.tid = tid;
        this.name = name;
        this.user = user;
    }

    @Override
    public String toString() {
        return "Tag{" +
                "tid=" + tid +
                ", name='" + name + '\'' +
                ", user=" + user +
                '}';
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
